﻿using TbShop.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TbShop.Business.Components
{
    public  class SystemMessageBC
    {
        private ServiceComponents<SystemMessage> systemMessageBC = new ServiceComponents<SystemMessage>();
        /// <summary>
        /// 获取未读信息数目
        /// </summary>
        /// <returns></returns>
        public int MessageCount()
        {
            return systemMessageBC.GetAll().Count(a => a.IsRead == false);
        }
    }
}
